<?php

use App\Models\GoodsSku;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;


Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->resource('goods','GrGoodController');
    $router->resource('goodsType','GrGoodsTypeController');
    $router->post('step',[\App\Admin\Controllers\GrGoodController::class,'form']);

    $router->resource('live','GrLiveController');
    $router->resource('logistics','GrExpressController');
    $router->resource('goodsOrder','GrOrderController');

    $router->get('adminLive',[\App\Admin\Controllers\GrLiveController::class,'adminLive']);
    $router->get('liveError',[\App\Admin\Controllers\GrLiveController::class,'liveError']);




    $router->get('abc',function (){
        $disk = Storage::disk('qiniu');
        $disk->delete('goodsImg/2dffc05adec4052055427cdceff78933.png');
    });


});
